function t(t, e, a) {
    return e in t ? Object.defineProperty(t, e, {
        value: a,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = a, t;
}

require("../../80DACA45CDB955CFE6BCA24283C89F20.js");

var e = getApp();

Page({
    data: {
        leiList: [],
        textList: [],
        currtIndex: 0,
        vuale: "x",
        test1_List: [],
        test2_List: [],
        test3_List: [],
        back_0: "#000",
        color_0: "#fff",
        border: "1px #4169E1 solid",
        currentIndex: 0,
        newslist: [],
        navScrollLeft: 0
    },
    content_item1_tap: function(t) {
        e.globalData.linkwenan = t.currentTarget.dataset.src, wx.navigateBack({
            delta: 1
        });
    },
    handleTab: function(t) {
        var e = t.currentTarget.dataset.index;
        this.setData({
            currentIndex: e
        });
    },
    change: function(t) {
        var e = t.detail.current;
        this.setData({
            currentIndex: e,
            navScrollLeft: 86 * t.detail.current
        });
    },
    onLoad: function(e) {
        var a = this;
        wx.request({
            url: "https://224diy.com/admin/php/call.php?lx=2",
            success: function(e) {
                a.setData({
                    test1_List: e.data
                });
                for (var n = 0; n < a.data.test1_List.length; n++) {
                    var s;
                    !function(e) {
                        s = [], wx.request({
                            url: "https://224diy.com/admin/php/call.php?lx=2&name=" + a.data.test1_List[e].name,
                            success: function(n) {
                                for (var r = 0; r < n.data.length; r++) s.push({
                                    txt: n.data[r].txt
                                });
                                var i = "test1_List[" + e + "].lists";
                                a.setData(t({}, i, a.data.newslist.concat(s))), s = [];
                            }
                        });
                    }(n);
                }
                console.log(a.data.test1_List);
            }
        });
    }
});